package com.quan.junit.area;

import java.util.List;

public class AreaModel {
	
	private Integer id ;
	
	private Integer pid ;
	
	private Integer level ;

	private String code ;
	
	private String name ;
	
	private Boolean leaf ;
	
	private List<AreaModel> children ;
	
	public AreaModel() {
	}

	public Boolean getLeaf() {
		return leaf;
	}

	public void setLeaf(Boolean leaf) {
		this.leaf = leaf;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public List<AreaModel> getChildren() {
		return children;
	}

	public void setChildren(List<AreaModel> children) {
		this.children = children;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "AreaModel [id=" + id + ", pid=" + pid + ", code=" + code + ", name=" + name + ", children=" + children + "]";
	}

	
}
